home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1993 November
/
JCSM Shareware Collection - 1993-11.iso
/
cl980
/
guardst2.lzh
/
UNLOCK.BAT
< prev
Wrap
DOS Batch File
|
1989-12-11
|
787b
|
29 lines
echo off
rem unlock.bat (example batch file for using SENTRY to decrypt)
c:\sentry/o
if not errorlevel 2 goto endo
if errorlevel 255 goto ctrl_brk
if errorlevel 254 goto deny
if errorlevel 4 goto err
echo Security areas left open !!
goto end
:endo
echo Security areas successfully unlocked
goto end
:err
echo Cannot open security areas
goto end
:deny
echo Access Denied
rem An unsuccessful access attempt!
rem You can take any kind of action you deem appropriate
goto end
:ctrl_brk
echo Access Denied
rem Ctrl-Brk was pressed...
rem You can take any kind of action you deem appropriate,
rem but in this case, control returns to the batch file
rem only if the would-be snooper hits 'N' in response to the
rem DOS question 'Terminate batch process? (Y/N)'
:end